package com.springboot.exception.web;

import com.springboot.exception.exception.MyException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuwei
 * @version 2017/7/15 下午11:03
 * @modified TODO
 * @description 功能描述
 * @see
 * @since 1.0
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping(value = "/")
    public String exceptionPage() throws Exception {
        throw new Exception("exception page");
    }

    @RequestMapping(value = "/myException")
    public String myException() throws MyException {
        throw new MyException();
    }

}
